home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 795 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: pipex-sa.net!usenet
  2. From: thierry@solo.pipex.co.za
  3. Newsgroups: comp.lang.c,comp.os.os2.programmer.misc
  4. Subject: Re: redefining stdout and stderr
  5. Date: 9 Jan 1996 10:21:07 GMT
  6. Organization: pipex-sa.net
  7. Message-ID: <4ctfij$77o@baloo.pipex-sa.net>
  8. References: <DKw9Cv.2x4@fyi.net>
  9. Reply-To: thierry@solo.pipex.co.za
  10. NNTP-Posting-Host: pop48.dial.pipex.co.za
  11. X-Newsreader: IBM NewsReader/2 v1.2.5
  12.  
  13. In <DKw9Cv.2x4@fyi.net>, fireresq@fyi.net writes:
  14. >everyting I am doing is running on OS/2 Warp Connect and using the IBM 
  15. >Set++ compiler.
  16. >
  17. >I have a program that I have converted form an exe to a DLL.  I used many
  18. >printf's for debug and status information.
  19. >
  20. >What I want to do is cause stdout and stderr to go to a file but since 
  21. >this dll will be called from VisualAge I cannot redirect the output with >.
  22. >
  23. [...]
  24. >Thanks in advance!
  25. >Mark Russell.
  26.  
  27. Close the handles 1 and 2 (stdout and stderr) then open your file.
  28. Use DosDupHandle (or the lib equivalent) to get your redirection.
  29.  
  30. What will happend when your DLL returns ??????
  31.  
  32. //---------------------------
  33. Thierry de Montaudry
  34. thierry@solo.pipex.co.za
  35.